package com.andaily.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Shengzhao Li
 */
@Controller
@RequestMapping("/user/")
public class UserController {


//    @Autowired
//    private UserService userService;
//    @Autowired
//    private UserFormDtoValidator validator;
//
//    @RequestMapping("overview.hb")
//    public String overview(String guid, Model model) {
//        //Just for testing
//        UserDto userDto = userService.loadUserDto(guid);
//        model.addAttribute("userDto", userDto);
//        return "user_overview";
//    }
//
//    @RequestMapping("user_submit.hb")
//    public String userSubmit(UserFormDto userFormDto, Model model) {
//        //Just for testing TX
//        String guid = userService.persistUserFormDto(userFormDto);
//        return "redirect:overview.hb?guid=" + guid;
//    }


}